package qr.game.fragments;

import qr.game.R;
import android.app.ListFragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ListView;

public class LocationsFragment extends ListFragment{
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
            Bundle savedInstanceState) {
    	ListView leaderboardView = (ListView) inflater.inflate(R.layout.locations_layout, container, false);
    	setListAdapter( new LocationListAdapter( this.getActivity() ) );
    	return leaderboardView;
    }
    
    public void setChanged(){
    	((BaseAdapter) getListAdapter()).notifyDataSetChanged();
    }
}